package com.example.serverdemo.mapper;

import com.example.serverdemo.bean.DeviceInfoBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeviceMapper {
    DeviceInfoBean queryDevice(String deviceId);
    int registerDevice(DeviceInfoBean deviceInfoBean);
    int unRegisterDevice(String deviceId);
    int updateDevice(DeviceInfoBean deviceInfoBean);
    List<DeviceInfoBean> queryAllOnlineDevice(boolean device_connect_status);
}
